﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SongSharp.Presentation.Adapter;
using SongSharp.Presentation.View;

namespace SongSharp.Presentation.Helper.ImageButton
{
    public static class ImageButtonManager
    {
        public static MultiStateAdapter NextButton { get; private set; }
        public static MultiStateAdapter PrevButton { get; private set; }
        public static MultiStateAdapter RepeatButton { get; private set; }
        public static MultiStateAdapter RandomButtom { get; private set; }
        public static MultiStateAdapter PlayOnceButton { get; private set; }
        public static MultiStateAdapter PauseButton { get; private set; }

        public static void Init(PrimeView mainWindow)
        {
            NextButton = new MultiStateAdapter(mainWindow.imageNext, "control_ui_pressed_button_playnext.png", "control_ui_inactive_button_playnext.png",
                new string[] { "control_ui_highlighted_button_playnext.png" });
            PauseButton = new MultiStateAdapter(mainWindow.imagePause, "control_ui_pressed_button_pause.png", "control_ui_inactive_button_pause.png",
                new string[] { "control_ui_highlighted_button_pause.png" });
            PrevButton = new MultiStateAdapter(mainWindow.imagePrevious, "control_ui_pressed_button_playprevious.png", "control_ui_inactive_button_playprevious.png",
                new string[] { "control_ui_highlighted_button_playprevious.png" });
            RepeatButton = new MultiStateAdapter(mainWindow.imageRepeat, "control_ui_pressed_button_repeat.png", "control_ui_inactive_button_repeat.png",
                new string[] { "control_ui_highlighted_button_repeat.png", 
                "control_ui_suppressed_button_repeat.png", "control_ui_inactive_button_repeat.png" });
            RandomButtom = new MultiStateAdapter(mainWindow.imageRandom, "control_ui_pressed_button_random.png", "control_ui_inactive_button_random.png",
                new string[] { "control_ui_highlighted_button_random.png", 
                "control_ui_suppressed_button_random.png", "control_ui_inactive_button_random.png" });
            PlayOnceButton = new MultiStateAdapter(mainWindow.imagePlayOnce, "control_ui_pressed_button_playonce.png", "control_ui_inactive_button_playonce.png",
                new string[] { "control_ui_highlighted_button_playonce.png", 
                "control_ui_suppressed_button_playonce.png", "control_ui_inactive_button_playonce.png" });
        }
    }
}
